extends PointLight2D

@export var base_energy := 1.0
@export var flicker_strength := 0.15
@export var flicker_speed := 6.0
var time := 0.0

func _process(delta):
	time += delta * flicker_speed
	# 轻微随机+平滑正弦波混合闪烁
	var noise = randf_range(-0.5, 0.5)
	energy = base_energy + sin(time) * 0.05 + noise * flicker_strength
